package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_music_room_mission", desc = "妙音坊关卡日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "music_play")
public class LogMusicRoomMission extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "关卡id", dataAttribute = "music_playid")
    private int missionId;
    @FieldTypeAnnotation(desc = "上阵美女", dataAttribute = "music_playbeauty", saveJson = true)
    private List<Integer> beautyIds;
    @FieldTypeAnnotation(desc = "上阵总属性")
    private String attrs;
    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "music_playreward")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogMusicRoomMission(long userId, int missionId, List<Integer> beautyIds, String attrs, String reward) {
        this.userId = userId;
        this.missionId = missionId;
        this.beautyIds = beautyIds;
        this.attrs = attrs;
        this.reward = reward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
